The online racing simulator
Searching in All forums
(374 results)
Tim NL
S2 licensed
Quote from Bass-Driver :hi
i have a lil problem with transfer the driftbox from 5.716 to 5.845 . it doenst show the driftbox completly
can someone help me .

openPrivButton( "Servername",1,127,28,5,4,-1,16,"^0[^7" . $ConfVar["host"] . "^0]" );


Hi,
Use this to show the server name.
openPrivButton( "Servername",1,127,28,5,4,-1,16,"^0[^7" . getLapperVar( "HostName" ) . "^0]" );
Tim NL
S2 licensed
Hi,

Do anyone know the syntax for openprivtextbutton ? [ Problem Solved ]

The code is now OK.

openPrivTextButton( "button_ID",origL,origT,$wide_button,$hight_button,5,96,"text in chat window","Text in button",$max_lenght_of_input,Goto_this_Sub );

Sub Goto_this_Sub( $myVar )
privMsg( "$myVar = " . $myVar );
EndSub

Thanks in advance.
Last edited by Tim NL, . Reason : Problem Solved
Tim NL
S2 licensed
Quote from Mikjen :Is there a option to increase the time ( 10 secs) that the winner board stops on for ?

Hi,

openGlobalButton( "Id of button",left_pos,top_pos,lenght_of_button,hight_of_button,1,time,32,"Text in the Button", goto_this_sub_when_clicked_on_button );

With time you can set the number(s) of seconds how long a button stay on screen. If use -1 it will stay till you close the button with closeGlobalButton.

By 1 is used for multiline buttons, is the hight where the next line will start.
By 32 you can lineout the text of button and change collor ( only Light or Dark and lineout left or right or in the middle).

So in the winnerflag change in every line 10 to something else.
openGlobalButton( "winner_backing",66,136,74,34,3,10,32," ");
Tim NL
S2 licensed
Quote from Fire_optikz001 :SO Wait would u still use if useringroup?

Hi,

You can use IF( UserInGroup( "admin",$userName ) == 1 || UserInGroup( "tempadmin",$userName ) == 1) to use 2 admin groups (admin and tempadmin)

CASE "!login":
IF( UserInGroup( "admin",$userName ) == 1 || UserInGroup( "tempadmin",$userName ) == 1)
THEN
privMsg( "^2You are already logged in");
BREAK;
ENDIF
IF( $argv == 1234 )
THEN
privMsg( "^2Thank you for logging in");
MoveUserToGroup( "tempadmin",$userName );
ELSE
privMsg( "^1Login Denied");
ENDIF
BREAK;
CASE "!logout":
IF( UserInGroup( "admin",$userName ) == 1 || UserInGroup( "tempadmin",$userName ) == 1)
THEN
RemoveUserFromGroup( "tempadmin",$userName );
privMsg( "^2You are logged out now.");
ELSE
privMsg( "^2You where not logged in.");
ENDIF
BREAK;
CASE "!rst":
IF( UserInGroup( "admin",$userName ) == 1 || UserInGroup( "tempadmin",$userName ) == 1) THEN
cmdLFS( "/restart " );
ENDIF
BREAK;

Tim NL
S2 licensed
Quote from Fire_optikz001 :Tim NL u made a bug :S

lol cause u made bugs

yes its still dont work same problem i had with !auth

My script works here fine. ( its still active on [NLR]NL Racing GTR , you can try it there with !login 1234 and !logout )
But you cant use UserGroupFromFile() in combi with MoveUserToGroup()
( it are two different things).
Last edited by Tim NL, .
Tim NL
S2 licensed
Hi,
!auth is already used in lapper.

CASE "!auth":
privMsg( langEngine( "%{main_level}%", GetCurrentPlayerVar("AuthLevel") ) );
BREAK;

And the group "admin" is filled from a file and you can't add usernames to a file ( i think) .

So i used !login and !logout and the group "tempadmin" for example.

CASE "!login":
IF( UserInGroup( "tempadmin",$userName ) == 1 )
THEN
privMsg( "^2You are already logged in");
BREAK;
ENDIF
IF( $argv == 1234 )
THEN
privMsg( "^2Thank you for logging in");
MoveUserToGroup( "tempadmin",$userName );
ELSE
privMsg( "^1Login Denied");
ENDIF
BREAK;
CASE "!logout":
IF( UserInGroup( "tempadmin",$userName ) == 1 )
THEN
RemoveUserFromGroup( "tempadmin",$userName );
privMsg( "^2You are logged out now.");
ELSE
privMsg( "^2You where not logged in.");
ENDIF
BREAK;

Ps: If lapper reset the group "tempadmin" is empty.
Last edited by Tim NL, . Reason : added the ps.
Tim NL
S2 licensed
I use to following scripts at the moment ,the other default script maybe in future.

Pitboard (by Yisc[NL]) - Very usefull but i dont use it on the Demo server.

Leaderboard (by Sinanju) - Use it on demo server with a small script to turn leaderboard on or off. This one is a bit more easy to use for people who are new to LFS.

Pitwindow (GUI) (by Yisc[NL])

Config Gui (Made by myself) - Works super

Replacement HELP function (Made by myself) - with !help !rules !info !split

Not Welcome (Made by myself )

MyStats (Made by myself) so people can see there stats on the server and what license and how many points they have. !mystats

Point and License system (Made by myself) Shows at end of race the finish position and the number of point and there license. !point !rank

And some other small script like logo on top and the Logo when spectating and some still under development
Tim NL
S2 licensed
Quote from boyracer1981 :I need to have multiple Lappers because my customers install them for their individual server's
Also there are no error logs in the folder

Hi,
You can have serval dedi(s) with one LFSLapper.
In the LFSServers.cfg you add them.

LFSServers.cfg

# Configuration of LFSServer to be Managed with LFSLapper
# One line per server
# Remote port is the port used to manage LFSLapper remotely, future extension
# One remote port per LFSLapper on one machine, autoStart is optionnal
#Unique ID|GroupId|Ip|Port|WorkDir|IniFile|autoStart
remotePort=3001;
SVR1|gr1|127.0.0.1|29991|./default|S2_GTR.ini|autowork
SVR2|gr1|127.0.0.1|29992|./default|Demo_bronze.ini|autowork
SVR3|gr1|127.0.0.1|29993|./default|Demo_copper.ini|autowork
SVR4|gr1|127.0.0.1|29994|./default|S2_FBM.ini|autowork
SVR5|gr1|127.0.0.1|29995|./default|S2_Test.ini|autoStart

Tim NL
S2 licensed
ConfigGUI is update to version 1.0.7. (See first post )

Last changes
Ver.1.0.7 You can now also select the missing tracks BL3 AU1 AU2 AU3 AU4
Ver.1.0.7 You can now choice between Laps/Hours races.
Ver.1.0.7 Fixed some little bugs.
Tim NL
S2 licensed
Hi,
Your Leaderboard have a small bug ,it shows the usernames incase of the nicknames from who is infront or behind you.
Leaderboard works fine.

The next lines must be

$nickNameFront = GetPlayerVar( GetCurrentPlayerVar( "UNameBefore" ),"nickName" );
$nickNameBack = GetPlayerVar( GetCurrentPlayerVar( "UNameBehind" ),"nickName" );
Tim NL
S2 licensed
Quote from Fire_optikz001 :

<?php 
    
IF( $Nickname == "^0[^4S^0C]" )
    
THEN
        cmdLFS
"/kick " $userNtame );
    ENDIF
?>


Hi,
Try this.


GlobalVar $TeamTag;
$TeamTag = "^0[^4S^0C]"; # Put here a team Tag that you want to check
GlobalVar $TeamTagLenght;
GlobalVar $TeamTagStrip;

$TeamTagLenght = StrLen( $TeamTag );
$NickName = GetCurrentPlayerVar("NickName");
$TeamTagStrip = substr( $NickName,0,$TeamTagLenght );

IF( $TeamTagStrip == $TeamTag )
THEN
do something ( kick or allow )
ENDIF

Tim NL
S2 licensed
Quote from Dygear :LFSLapper Development Forum Custom Code Block, it would be nice if this was implemented without having to add the color manually. Victor?

Hi,
It was just a sample , you dont have to use collors in a script.
But collors can be usefull to read a script more easily.
If you open a script with something like PSPad you can have automatic collors in your scripts. http://www.lfsforum.net/showthread.php?t=59967

ps. my name is Tim not Victor
Tim NL
S2 licensed
Hi,
I use this on my servers for people who are not welcome.
Just put a file whith the usernames in a txt file in the default dir.


Event OnConnect() # Player event
$Username = GetCurrentPlayerVar("Username");

UserGroupFromFile( "notwelcome", "./notwelcome.txt" );
IF( UserInGroup( "notwelcome",$Username ) == 1 )
THEN
cmdLFS( "/ban " . $Username . " 99" );
ENDIF




Tim NL
S2 licensed
Quote from sinanju :Hi Tim[NL]
I should have thought it was a bit too easy!
In truth, I never gave penalties much thought. I was just thinking that if the event is called Event OnResult( $flagConfirm), then it would give me the same results as LFS does (as shown in LFS table at top right of screen when race complete).
Looking at the complicated code (cloud code - ie way over my head!), have you got something like this already implemented on your server?
Couple of things about your code:

I had $WinnerName = GetCurrentPlayerVar("NickName"); then put this name in one of the buttons (openGlobalButton( "winner_name",78,156,58,12,3,10,64,langEngine( "%{main_winnername}%",$WinnerName)).

That line of code no longer exists in your version, so do I need to change this $WinnerName back to "NickName"?

Does CASE 1 mean the 1st player to finish (after allowing for penalties)?

Just that I'm working on coding to have top 3 results show as flags. Do I need to use Case 1, Case 2 and Case 3 for the 3 results?

Thanks.

Hi,
Sorry, i missed this line $WinnerName = GetCurrentPlayerVar("NickName"); in the script, i just did a copy past from some lines from my own script.:doh:

I have on [NLR]NL Racing Copper (Demo) or on [NLR]FBM Racing (S2) and some other servers a point system, to give points after a race and store them in a database.


SWITCH( GetCurrentPlayerVar("[COLOR=orange]FinishedPos[/COLOR]") ) [COLOR=blue]# you can use any var here[/COLOR]
CASE 1: [COLOR=blue]# 1 is the value of GetCurrentPlayerVar("[COLOR=orange]FinishedPos[/COLOR]")[/COLOR]
[COLOR=seagreen]do something[/COLOR]
BREAK;
CASE 2:
[COLOR=seagreen]do something[/COLOR]
BREAK;
CASE 3:
[COLOR=seagreen]do something[/COLOR]
BREAK;
DEFAULT: [COLOR=blue]# If no value match then do this[/COLOR]
[COLOR=seagreen]do something else[/COLOR]
BREAK;
ENDSWITCH

You can with CASE 2 , CASE 3 and so on , show thing or give points ( i have now CASE 1 to 24 )


Event OnResult( $flagConfirm )
$WinnerName = GetCurrentPlayerVar("NickName");
SWITCH( GetCurrentPlayerVar("FinishedPos") )
CASE 1:
IF(( $flagConfirm == 2 )||( $flagConfirm == 18 )||( $flagConfirm == 34 ))
THEN
openGlobalButton( "winner_backing",66,136,74,34,3,10,32," ");
openGlobalButton( "number_1",67,137,10,32,3,10,16,"^01");
openGlobalButton( "winner_title",78,137,62,19,4,10,96,langEngine( "%{main_winnertitle}%" ));
openGlobalButton( "winner_name",78,156,58,12,3,10,64,langEngine( "%{main_winnername}%",$WinnerName));

openGlobalButton( "white_banner1",108,137,32,18,1,10,16," ");
openGlobalButton( "white_banner2",108,137,32,18,1,10,16," ");
openGlobalButton( "white_banner3",108,137,32,18,1,10,16," ");

openGlobalButton( "black_banner1",136,137,4,6,1,10,32," ");
openGlobalButton( "black_banner2",136,137,4,6,1,10,32," ");
openGlobalButton( "black_banner3",136,137,4,6,1,10,32," ");

openGlobalButton( "black_banner4",112,137,4,6,1,10,32," ");
openGlobalButton( "black_banner5",112,137,4,6,1,10,32," ");
openGlobalButton( "black_banner6",112,137,4,6,1,10,32," ");

openGlobalButton( "black_banner7",120,137,4,6,1,10,32," ");
openGlobalButton( "black_banner8",120,137,4,6,1,10,32," ");
openGlobalButton( "black_banner9",120,137,4,6,1,10,32," ");

openGlobalButton( "black_banner10",128,137,4,6,1,10,32," ");
openGlobalButton( "black_banner11",128,137,4,6,1,10,32," ");
openGlobalButton( "black_banner12",128,137,4,6,1,10,32," ");

openGlobalButton( "black_bannera",108,143,4,6,1,10,32," ");
openGlobalButton( "black_bannerb",108,143,4,6,1,10,32," ");
openGlobalButton( "black_bannerc",108,143,4,6,1,10,32," ");

openGlobalButton( "black_bannerd",116,143,4,6,1,10,32," ");
openGlobalButton( "black_bannere",116,143,4,6,1,10,32," ");
openGlobalButton( "black_bannerf",116,143,4,6,1,10,32," ");

openGlobalButton( "black_bannerg",124,143,4,6,1,10,32," ");
openGlobalButton( "black_bannerh",124,143,4,6,1,10,32," ");
openGlobalButton( "black_banneri",124,143,4,6,1,10,32," ");

openGlobalButton( "black_bannerj",132,143,4,6,1,10,32," ");
openGlobalButton( "black_bannerk",132,143,4,6,1,10,32," ");
openGlobalButton( "black_bannerl",132,143,4,6,1,10,32," ");

openGlobalButton( "black_bannera1",136,149,4,6,1,10,32," ");
openGlobalButton( "black_bannera2",136,149,4,6,1,10,32," ");
openGlobalButton( "black_bannera3",136,149,4,6,1,10,32," ");

openGlobalButton( "black_bannera4",112,149,4,6,1,10,32," ");
openGlobalButton( "black_bannera5",112,149,4,6,1,10,32," ");
openGlobalButton( "black_bannera6",112,149,4,6,1,10,32," ");

openGlobalButton( "black_bannera7",120,149,4,6,1,10,32," ");
openGlobalButton( "black_bannera8",120,149,4,6,1,10,32," ");
openGlobalButton( "black_bannera9",120,149,4,6,1,10,32," ");

openGlobalButton( "black_bannera10",128,149,4,6,1,10,32," ");
openGlobalButton( "black_bannera11",128,149,4,6,1,10,32," ");
openGlobalButton( "black_bannera12",128,149,4,6,1,10,32," ");
ENDIF
BREAK;
ENDSWITCH

EndEvent

Tim NL
S2 licensed
Quote from sinanju :For V5.844

Button that pops up at end of race with position = 1/Winner/drivers name.

-------------------------------------------
|... | Winner................................. |
| 1 |-------------------------------------|
| .. | Drivers Name in here........... |
-------------------------------------------

Bit like when you've watched race on tv and leading driver goes over finish line.

Many thanks to Fire_optikz001 for spotting my silly bug.

Look for the Event OnResult( $flagConfirm ) section, that ends with EndEvent.

Substitute all of following code:

Hi,
You winner flag looks very nice but to be sure that who won the race is really the winner you must use the $flagConfirm to. If the winner have a SG or DT penalty he can show up as a winner but he is disqualified in the race.
So the confirm flag must be 2 or 2+16 or 2+32.

Event OnResult confirm flags
CONF_MENTIONED 1
CONF_CONFIRMED 2
CONF_PENALTY_DT 4
CONF_PENALTY_SG 8
CONF_PENALTY_30 16
CONF_PENALTY_45 32
CONF_DID_NOT_PIT 64

Event OnResult( $flagConfirm )

SWITCH( GetCurrentPlayerVar("FinishedPos") )
CASE 1:
IF(( $flagConfirm == 2 )||( $flagConfirm == 18 )||( $flagConfirm == 34 ))
THEN
openGlobalButton( "winner_backing",66,136,74,34,3,10,32," ");
openGlobalButton( "number_1",67,137,10,32,3,10,16,"^01");
openGlobalButton( "winner_title",78,137,62,19,4,10,96,langEngine( "%{main_winnertitle}%" ));
openGlobalButton( "winner_name",78,156,58,12,3,10,64,langEngine( "%{main_winnername}%",$WinnerName));

openGlobalButton( "white_banner1",108,137,32,18,1,10,16," ");
openGlobalButton( "white_banner2",108,137,32,18,1,10,16," ");
openGlobalButton( "white_banner3",108,137,32,18,1,10,16," ");

openGlobalButton( "black_banner1",136,137,4,6,1,10,32," ");
openGlobalButton( "black_banner2",136,137,4,6,1,10,32," ");
openGlobalButton( "black_banner3",136,137,4,6,1,10,32," ");

openGlobalButton( "black_banner4",112,137,4,6,1,10,32," ");
openGlobalButton( "black_banner5",112,137,4,6,1,10,32," ");
openGlobalButton( "black_banner6",112,137,4,6,1,10,32," ");

openGlobalButton( "black_banner7",120,137,4,6,1,10,32," ");
openGlobalButton( "black_banner8",120,137,4,6,1,10,32," ");
openGlobalButton( "black_banner9",120,137,4,6,1,10,32," ");

openGlobalButton( "black_banner10",128,137,4,6,1,10,32," ");
openGlobalButton( "black_banner11",128,137,4,6,1,10,32," ");
openGlobalButton( "black_banner12",128,137,4,6,1,10,32," ");

openGlobalButton( "black_bannera",108,143,4,6,1,10,32," ");
openGlobalButton( "black_bannerb",108,143,4,6,1,10,32," ");
openGlobalButton( "black_bannerc",108,143,4,6,1,10,32," ");

openGlobalButton( "black_bannerd",116,143,4,6,1,10,32," ");
openGlobalButton( "black_bannere",116,143,4,6,1,10,32," ");
openGlobalButton( "black_bannerf",116,143,4,6,1,10,32," ");

openGlobalButton( "black_bannerg",124,143,4,6,1,10,32," ");
openGlobalButton( "black_bannerh",124,143,4,6,1,10,32," ");
openGlobalButton( "black_banneri",124,143,4,6,1,10,32," ");

openGlobalButton( "black_bannerj",132,143,4,6,1,10,32," ");
openGlobalButton( "black_bannerk",132,143,4,6,1,10,32," ");
openGlobalButton( "black_bannerl",132,143,4,6,1,10,32," ");

openGlobalButton( "black_bannera1",136,149,4,6,1,10,32," ");
openGlobalButton( "black_bannera2",136,149,4,6,1,10,32," ");
openGlobalButton( "black_bannera3",136,149,4,6,1,10,32," ");

openGlobalButton( "black_bannera4",112,149,4,6,1,10,32," ");
openGlobalButton( "black_bannera5",112,149,4,6,1,10,32," ");
openGlobalButton( "black_bannera6",112,149,4,6,1,10,32," ");

openGlobalButton( "black_bannera7",120,149,4,6,1,10,32," ");
openGlobalButton( "black_bannera8",120,149,4,6,1,10,32," ");
openGlobalButton( "black_bannera9",120,149,4,6,1,10,32," ");

openGlobalButton( "black_bannera10",128,149,4,6,1,10,32," ");
openGlobalButton( "black_bannera11",128,149,4,6,1,10,32," ");
openGlobalButton( "black_bannera12",128,149,4,6,1,10,32," ");
ENDIF
BREAK;
DEFAULT:
BREAK;
ENDSWITCH

EndEvent

Last edited by Tim NL, .
Tim NL
S2 licensed
Quote from tm_raven :hmm... ive been working on the drift settings for many hours new, im not used to this insim lapper so i wounder... stuck at figuring where / if i can change the locations of the drift stuff showing on screen?

openPrivButton( "help",25,28,150,10,5,-1,0,"^2Commands list", backcall );
Open a button for the current player
1 - Unique id for this button
2 - Left coordinate for this button ( 0-200 )
$origL = (value between 0-200); - when this value is used, every next value can be made relative to this one (example: $origL + 5
3 - Top coordinate for this button ( 0-200 )
$origT = (value between 0-200); - when this value is used, every next value can be made relative to this one (example: $origT + 5
4 - Width of the button ( 0-200 )
5 - Heigth of the button ( 0-200 )
6 - Space between line in multiline button
7 - Duration in seconds for the button to be displayed (use -1 if you don't want an automatic close)
8 - Format of the button, look at insim.txt for values
9 - Button caption, for multiline, separate each line with &
10 - Option name of the backcalled sub
Tim NL
S2 licensed
@X-FACTOR RACING

Here a beter pic. ( 2 minute google)
http://pictures.topspeed.com/c ... rift-dodge-ch_1600x0w.jpg

And with 5 minute copy and past i get something like this.
Its a start. But needs a lot of work to make a good looking skin.( im very busy at the moment and dont have that time .)
Take a look on this side http://www.master-skinnerz.com/ and give it a try.
Tim NL
S2 licensed
Quote from Fire_optikz001 :i wanna make it so that i can change 2 sets of numbers i got it to work with my easy click but i cant get it to work here can any one help?

Hi,
You forgot 2x a ,

Small tip: Open your lapper scripts with PSPAd so all the line in the script are numberd.
In ..\bin\default\logs open your error log file to see in which line the error is.


CASE "!ver":
IF( UserInGroup( "beta",$userName ) == 1 )
THEN
openPrivButton( "ver",35,28,125,10,5,-1,0,"^6Lapper Version Information" );
openPrivButton( "ver2"[COLOR=red],[/COLOR]35,38,125,6,5,-1,32,"^2this server is running ^0[^4S^0C] ^7Lapper version " . $VNB . $VSB
. "&^2made by ^0[^4S^0C] ^7T3ChaRmy"
. "&^2Score Board made by ^7[TT^1R^7] Ken Nomura"
. "&^2based off of ^6Gai-Luron's ^2LFSlapper"
. "&Click To Close!",MA_closever );
ELSE
openPrivButton( "ver",35,28,125,10,5,-1,0,"^6Lapper Version Information" );
openPrivButton( "ver2"[COLOR=red],[/COLOR]35,38,125,6,5,-1,32,"^2this server is running ^0[^4S^0C] ^7Lapper version " . $VN . $VS
. "&^2made by ^0[^4S^0C] ^7T3ChaRmy"
. "&^2Score Board made by ^7[TT^1R^7] Ken Nomura"
. "&^2based off of ^6Gai-Luron's ^2LFSlapper"
. "&Click To Close!",MA_closever );
ENDIF

Tim NL
S2 licensed
Quote from frankboezen :hmm.. they're already in there.. I restarded Live for speed, even my whole computer. I putted the .jpg files in data/pic.

Thanks for your help!

Do i maybe need to activate the suits? Like skins in Live for speed?

No need to activated for suits , just copy the jpg files in ..data/pic and besure that the names are SUITB.jpg or SUITG.jpg .
Make a copy of the orgional files. The suits are only see by your self or anyone who have also changed his suit files.
Tim NL
S2 licensed
Quote from Fire_optikz001 :here is my pics =)

Hi,
The only problem i had with easy click buttons while driving that the people who driving with a mouse complain that there mouse arrow was moving all the time on the screen.
So i show the buttons now only when people spectate. ( And for the Admins there are other buttons.)
Tim NL
S2 licensed
Quote from sinanju :I'm having a problem with putting one of the standard CASE commands in a button, and getting it to work.

For instance, my button is:
openGlobalButton( "easyklikhelp",139,1,7,4,2,-1,32,langEngine( "%{main_easyklikhelp}%" ),OnClickHelp );

Then sub routine to open further buttons:

Sub OnClickHelp( $KeyFlags,$id )
SWITCH( $command)
CASE "!help":
openPrivButton( "help"......
openPrivButton( "help2"......
openPrivButton( "close".......
BREAK;
ENDSWITCH
EndSub

I've tried SWITCH ( $argv), SWITCH(), SWITCH (help), SWITCH (!help), Sub OnClickHelp().

I can get command to work, but only when it's not a ! type (e.g. !help, !ban, !kick, etc) command.

Hi,

By SWITCH( $your_var) then is CASE the value of $your_var.


SWITCH( $your_var)
CASE "!help": #is the value of $your_var
openPrivButton( "help"......
openPrivButton( "help2"......
openPrivButton( "close".......
BREAK;
ENDSWITCH

I think your code is something like

CASE "!help":
OnClickHelp(0,0);
BREAK;
.
.
.
openGlobalButton( "easyklikhelp",139,1,7,4,2,-1,32,langEngine( "%{main_easyklikhelp}%" ),OnClickHelp );

Sub OnClickHelp( $KeyFlags,$id )
openPrivButton( "help"......
openPrivButton( "help2"......
openPrivButton( "close".......
EndSub

Tim NL
S2 licensed
Quote from Tur8o :excuse me but what is "ws" ?

To retrieve a pb on a track with car from someone .
Try in lfs chat /ws bl1 fbm pb your_username
Tim NL
S2 licensed
Quote from Krayy :Hey there Tim,

I think you have a spelling mistake, in that the var is "qualMins", with a "u" in it.

Hi,

Thanks for quick answer.
I tried qualMins , QualMins qualmins and Qualmins but the qualMins will stay empty.

I wanted to use this vars in the configGui to set automatic the nummer of laps and the qual time.
At the moment the number of laps and qual time is set in the configGui script so the configGui shows the correct values.

### SET THE FOLLOWING VAR'S TO SETUP YOUR SERVER WHEN LFSLAPPER (RE)START ####
[COLOR=royalblue] $GUI_Lap_hour_number = 5 ;[/COLOR] #Number of race laps
[COLOR=royalblue]$GUI_qual = 10 ;[/COLOR] #Number of qual minutes
$GUI_wind = 0 ; #0=no wind 1=low wind 2=hard wind
$GUI_weather = 1 ; #set type of wheather 0,1 or 2
$GUI_mustpit = "no" ; #need to pit yes or no
$GUI_fcv = "no" ; #Force cockpit view yes or no
$GUI_drift = "no" ; #Drift option yes or no ( see the part at end of this script)
$GUI_midrace = "yes" ; #Join midrace yes or no
$GUI_start = "finish" ; #Race start order : fixed/finish/reverse/random
$GUI_current_car = "?" ; #You can set here the default car. If not set,the first time when the config GUI start its show's a "?".
### END ###

Using getLapperVar( "RaceLaps" ) will not work for the configGui because the number of racelaps is not always the correct number ( sometimes 0 if there is a qual ).

So i dont change this in the configGui and leave it like it is.
FGED GREDG RDFGDR GSFDG